package com.linked.order.order.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.linked.universal.common.LinkedTimeFormatter;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2023/5/26 14:21
 * @description : desc
 */
@Data
@TableName("order_order_info")
public class OrderInfoPO {

    /**
     * 订单表主键
     */
    @TableId(value="order_id",type = IdType.ASSIGN_UUID)
    private String orderId;

    /**
     * 商品版本id
     */
    @TableField("goods_version_id")
    private String goodsVersionId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 支付id
     */
    @TableField("pay_id")
    private String payId;

    /**
     * 地址
     */
    @TableField("address_id")
    private String addressId;

    /**
     * 快递单号
     */
    @TableField("delivery_no")
    private String deliveryNo;

    /**
     * total_price
     */
    @TableField("total_price")
    private Double totalPrice;

    /**
     * 商品数据
     * */
    @TableField("goods_count")
    private Integer goodsCount;

    @TableField("order_status")
    private Integer orderStatus;

    /**
     * create_time
     */
    @TableField("create_time")
    @JsonFormat(pattern = LinkedTimeFormatter.TIME)
    private LocalDateTime createTime;

    /**
     * data_status
     */
    @TableField("data_status")
    private Integer dataStatus;
}
